import { booksApiGet } from '../../api/books/index';


// 书
export const booksApiFun = (url: string,data: any) => {
    return new Promise((resolve,reject) => {
        (async () => {
            try {
                const res = await booksApiGet(url,data);
                resolve(res);
            } catch (e) {
                reject(e)
            }
        })()
    })
}

export default booksApiFun